Skip to content

Adding runtime-aware assembly loading strategy#550

Open
adecler wants to merge 2 commits into
developfrom
BHoM_UI-#549-RuntimeAwareAssemblyLoading
Open

Adding runtime-aware assembly loading strategy#550
adecler wants to merge 2 commits into
developfrom
BHoM_UI-#549-RuntimeAwareAssemblyLoading

Conversation

@adecler
Copy link
Copy Markdown
Member

@adecler adecler commented May 19, 2026

Issues addressed by this PR

Closes #549

With this PR, it is now possible for individual toolkits to compile for multiple target frameworks.

  • By default, dlls should still go the the root Assemblies folder when they are compatible with all frameworks (i.e. running correctly in all BHoM UIs)
  • All dlls specific to .NET framework (i.e., not working in a .NET Core framework) should go in the netfx sub-folder
  • All dlls only compatible with .net core frameworks, should go in the sub-folder corresponding to that framework's name. For example dlls for .net7.0 should go in the net7.0 sub-folder.

Test files

The best way to test this at the moment is to try the PR for the SQL toolkit: BHoM/SQL_Toolkit#82
This PR is using the new system from this PR to solve the current incompatibility of the SQL adapter with Rhino 8

Changelog

Additional comments

!!Important!!: As always don't forget to compile Grasshopper UI after BHoM_UI for the changes to take effect.

@adecler adecler requested a review from michaelhoehn May 19, 2026 15:37
@adecler adecler self-assigned this May 19, 2026
@adecler adecler added the type:feature New capability or enhancement label May 19, 2026
Copy link
Copy Markdown
Contributor

@michaelhoehn michaelhoehn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have successfully tested compilation of the code using the SQL toolkit PR referenced above as well as UI functionality in both Rhino 7 and 8. The code functions as expected with no loss of funcitonality of other toolkits.
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New capability or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Runtime-aware assembly loading strategy

2 participants